package com.chris.homecare.components
{
	import com.chris.homecare.TextureAtlasManager;
	
	import feathers.controls.LayoutGroup;
	import feathers.layout.AnchorLayout;
	
	import starling.display.Image;
	import starling.display.Quad;
	import starling.textures.Texture;
	
	public class IntroFooter extends LayoutGroup
	{
		private var backQuad:Quad;
		private var footerLogoImg:Image;
		
		public function IntroFooter()
		{
			super();
		}
		
		override protected function initialize():void
		{
			this.layout = new AnchorLayout();
			
			backQuad = new Quad(80,80,0x353535);
			footerLogoImg = new Image(TextureAtlasManager.getAtlas().getTexture("speiusshealthcare"));
			//footerLogoImg.y = 10;
			addChild(backQuad);
			//addChild(footerLogoImg);
			super.initialize();
		}
		
		override protected function draw():void
		{
			var stageWidth:uint = stage.stageWidth - 30;
			backQuad.x = 0;
			backQuad.y = 0;
			//backQuad.width = stageWidth;
			//backQuad.height = 80;
			footerLogoImg.width = stageWidth;
			super.draw();
		}
		
	}
}